<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'userMain.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

	<link rel="stylesheet" type="text/css" href="css/common.css">

<script>
function initializeMenu(menuId, actuatorId) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);
    if (menu == null || actuator == null) return;
    actuator.onclick = function() {
        var display = menu.style.display;
        menu.style.display = (display == "block") ? "none" : "block";
        return false;
    }
}
onerror=function(x,y,z){
	alert(x+"\n"+y+"\n"+z);
}
onload=function(){
	initializeMenu("menu","actuator");
}
</script>
</head>
  
  <body>
    <div id="navigation">
    	<s:form  action="jsp_user_bookselect.action?curPos=1" method="post" target="rightframe" theme="simple">
    			<table>
    			<tr>
    				<td><span>分类检索：</span></td>
    				<td><s:select name="typeId" list="%{typeList}" listKey="typeId" listValue="typeName" onchange="this.form.submit();"></s:select></td>
    			</tr>
    			<tr>
    				<td><span>关键字检索：</span></td>
    				<td><s:textfield name="keyword" id="search"></s:textfield><s:submit value="搜索" ></s:submit></td>
    			</tr>
    			<tr>
    				<td colspan="2"><font class="hot">热门推荐：</font></td>
    			</tr>
    			<tr>
    				<td colspan="2">
						<ul>
							<li>穆斯林的葬礼</li>
							<li>乔布斯传</li>
							<li>麦田里的守望者</li>
						</ul>
    				</td>
    			</tr>
    			<tr>
    				<td colspan="2"><font class="hot">友情链接：</font></td>
    			</tr>
    			<tr>
    				<td colspan="2">
						<ul>
							<s:iterator value="#session.linkList">
						    	<li><a href="<s:property value='url' />" target="_top" class="myfont">
						    			<s:property value="site" />
						    		</a>
						    	</li>	
						    </s:iterator>
					
						</ul>
    				</td>
    			</tr>
    			
    		</table> 
    		 		
    	</s:form>
    	
    	
    </div>
  </body>
</html>
